//
//  HighScore.m
//  Find the difference
//
//  Created by administrator on 16/8/14.
//  Copyright © 2016年 duanzhenglong. All rights reserved.
//

#import "HighScore.h"
#import "AppDelegate.h"
#import "GameBegain.h"
#import "Menu.h"
#import "SldeSlipMenu.h"
@interface HighScore ()
- (IBAction)black:(UIButton *)sender;
@property (weak, nonatomic) IBOutlet UILabel *Name1;
@property (weak, nonatomic) IBOutlet UILabel *Score1;
@property (weak, nonatomic) IBOutlet UILabel *Name2;
@property (weak, nonatomic) IBOutlet UILabel *Score2;
@property (weak, nonatomic) IBOutlet UILabel *Name3;
@property (weak, nonatomic) IBOutlet UILabel *Score3;
@end

@implementation HighScore

- (void)viewDidLoad {
    [super viewDidLoad];
    AppDelegate*del=[[UIApplication sharedApplication]delegate];
    self.Score1.text=[NSString stringWithFormat:@"%.2f",del.heightestScore1];
    self.Score2.text=[NSString stringWithFormat:@"%.2f",del.heightestScore2];
    self.Score3.text=[NSString stringWithFormat:@"%.2f",del.heightestScore3];
    self.Name1.text=del.highName1;
    self.Name2.text=del.highName2;
    self.Name3.text=del.highName3;
}

- (IBAction)black:(UIButton *)sender {
    GameBegain*G1=[[GameBegain alloc]init];
    Menu*M1=[[Menu alloc]init];
    SldeSlipMenu*S1=[[SldeSlipMenu alloc]initWithView:M1 andMainView:G1];
    S1.sideslipTapGes.enabled=YES;
    [self presentViewController:S1 animated:YES completion:nil];
}
@end
